
{extend name="layout"}
{block name="body"}

    <section class="wld-content">
        <div class="page_title">停保状态</div>
        <div class="page_title_obj">
            <div class="title-seach">
                <input type="hidden" name="status" id="status" value="{$Think.get.status}" />
                <input type="text" name="search" value="{$Think.get.search}"  lay-verify="required" placeholder="搜索" autocomplete="off" class="wld-input-bg">
                <i class="iconfont iconfangdajing"></i>
            </div>
        </div>
        <div class="con_box layui-form">
			<div class="con_tag">
				<a href="{:url('index/downconfig/index')}" {if empty($Think.get.status) ||  $Think.get.status eq 0} class="on" {/if}>全部</a>
				<a href="{:url('index/downconfig/index')}?status=1" {if $Think.get.status eq 1} class="on" {/if}>待停保（{$to_examine|default='0'}）</a>
                <a href="{:url('index/downconfig/index')}?status=2" {if $Think.get.status eq 2} class="on" {/if}>已停保</a>
                <a href="{:url('index/downconfig/index')}?status=3" {if $Think.get.status eq 3} class="on" {/if}>未通过（{$to_pass|default='0'}）</a>
                <div class="tag_right">
                    <!--{if $Think.get.status eq 3}<span class="tag_right_del" data-del-table data-confirm='是否确认删除' data-del-url='{:url('index/downsizing/del')}'>删除所选项</span>{/if}-->               
                    <span class="tag_right_exp" data-export-table data-export-url='{:url('index/downconfig/export')}'>导出所选项</span>
                </div>
			</div>
			<div class="con_table">
				<table  class="layui-table table-all" lay-skin="nob" data-export-name="table">
                    {notempty name='list'}
                    <colgroup>
                        <col width="80">
                        <col width="164">
                        <col width="132">
						<col width="234">
						<col width="178">
						<col width="178">
						<col width="160">
                        <col width="100">
                        <col width="104">
					  </colgroup>
					  <thead>
						<tr>
                            <th><input type="checkbox" name="" lay-filter="allChoose" title="" lay-skin="primary"></th>
                            <th>编号</th>
						    <th>姓名</th>
						    <th>身份证号</th>
                            <th>手机号码</th>
                            <th>保险类型</th>
                            <th>确认日期</th>
                            <th>状态</th>
                            <th class="text-center">操作</th>
						</tr> 
					  </thead>
                    {/notempty}
                    <tbody>
                    {foreach $list as $key=>$vo}
                    <tr>
                          <td><input type="checkbox" name="" title="" value="{$vo.id|default='0'}" lay-skin="primary"></td>
                            <td>{$vo.code|default=''}</td>
                            <td>{$vo.name|default=''}</td>
                            <td>{$vo.id_number|default=''}</td>
                            <td>{$vo.mobile|default=''}</td>
                            <td>{$insurance[$vo.insurance]}</td>
                            <td>{if $vo.confirm_date eq true}{$vo.confirm_date|date='Y-m-d'}{/if}</td>
                            <td>
                                {if $vo.status eq 1}<span class="color-green">待停保</span>
                                {elseif $vo.status eq 2}<span class="color-desc">已停保</span>
                                {elseif $vo.status eq 3}<span class="color-red">未通过</span>
                                {/if}
                            </td>
                          <td class="text-center table_obj">
                                {if $vo.status eq 3}
		                        <a href='{:url("index/downconfig/edit")}?id={$vo.id}'>编辑</a>
		                        {elseif ($vo.status eq 1) or ($vo.status eq 2)}
		                        <a href='{:url("index/downconfig/view")}?id={$vo.id}'>查看</a>
		                        {/if}
						  </td>
						</tr>
                    {/foreach}
                    </tbody>
                </table>
                {empty name='list'}
                <div class="con_blank">
                    <img src="__ROOT__/static/index/img/con_blank_img.png">
                    <p class="con_blank_title">暂无数据</p>
                    <!-- <p class="con_blank_con">暂无数据，请手动添加</p> -->
                </div>
                {else}{$list|raw|default=''}
                {/empty}
            </div>
           

		</div>
    </section>
{/block}


